/*
 * @Author: 汪圣哲 wanghist061@163.com
 * @Date: 2024-03-05 22:47:07
 * @LastEditors: 汪圣哲 wanghist061@163.com
 * @LastEditTime: 2024-03-07 15:38:32
 * @FilePath: \my_backstage\src\api\mock.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Mock from 'mockjs'
import homeMock from '../api/mockServe/home'
import user from '../api/mockServe/user'
import permission from '../api/mockServe/permission'

Mock.mock('/api/home/getData', homeMock)

Mock.mock(/\/api\/user\/getUser/,user.getUserList)
Mock.mock('/api/user/add','post',user.createUser)
Mock.mock('/api/user/edit','post',user.updateUser)
Mock.mock('/api/user/del','post',user.deleteUser)

Mock.mock(/api\/permission\/getMenu/,'post',permission.getMenu)